import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

public class Main {
    public static void main(String[] args) {

        try {
            URL myUrl = new URL("https://www.badiu.com");
            InputStreamReader inStrm =new InputStreamReader(myUrl.openStream());
            BufferedReader in = new BufferedReader(inStrm);

            String line;
            while( (line = in.readLine()) != null )
            {
                System.out.println(line);
            }


            in.close();
        } catch (MalformedURLException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}